# file: multicore_test06.py
import machine
import _thread
import utime

def run_on_core1():
    print("[core1] run thread")
    utime.sleep_ms(100)

def run_on_core0():
    while True:
        print("[core0] start thread:")
        _thread.start_new_thread(run_on_core1, ( ))
        utime.sleep_ms(1000)

run_on_core0()